﻿using Dotmim.Sync.Enumerations;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Dotmim.Sync.Serialization
{
    //public abstract class BaseConverter<T>
    //{
    //    public abstract T Deserialize(Stream ms);
    //    public abstract byte[] Serialize(T obj);

    //    public static BaseConverter<T> GetConverter(SerializationFormat serializationFormat)
    //    {
    //        switch (serializationFormat)
    //        {
    //            case SerializationFormat.Json:
    //                return new JsonConverter<T>();
    //            case SerializationFormat.Binary:
    //                return new BinaryConverter<T>();
    //        }

    //        throw new Exception("Cant get Converter");
    //    }


    //}
}
